package com.xmy.cultivate.service.impl;

import com.xmy.cultivate.entity.RolePermission;
import com.xmy.cultivate.mapper.RolePermissionMapper;
import com.xmy.cultivate.service.IRolePermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author min
 * @since 2022-09-25
 */
@Service
public class RolePermissionServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermission> implements IRolePermissionService {

    @Autowired
    RolePermissionMapper rolePermissionMapper;

    @Override
    public List<Long> getRolePermissionByRoleId(String roleId) {
        return rolePermissionMapper.getRolePermissionByRoleId(roleId);
    }

    @Override
    public List<Long> getMobileRolePermissionByRoleId(String roleId) {
        return rolePermissionMapper.getMobileRolePermissionByRoleId(roleId);
    }
}
